import {createSSRApp} from "vue";
import App from "./App.vue";


// 引入uview-plus组件库
import uviewPlus from 'uview-plus'
// 引入pinia
import {createPinia} from "pinia";

const Pinia = createPinia()
// 引入默认样式
import '@/uni.scss'
import 'vant/lib/index.css';

// 引入全局组件
import component from '@/compon/component'
// 引入全局挂载
import Prototype from '@/compon/Prototype'
import use from '@/compon/use'
import dayjs  from 'dayjs';

export function createApp() {
    const app = createSSRApp(App);
    app
        .use(uviewPlus)
        .use(Pinia)
        .use(component)
        .use(Prototype)
        .use(dayjs)
        .use(use)

    return {
        app,
    };
}
